import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'min-modal',
  templateUrl: './modal.component.html',
  styleUrls: ['./modal.component.less']
})
export class ModalComponent implements OnInit {

  constructor() { }
  @Input() title: string = 'Confirm';
  @Input() width: number = 540;
  @Output() close:EventEmitter<any> = new EventEmitter();
  ngOnInit() {
  }
  cancel(){
    this.close.emit(false);
  }
}
